package com.xt.base.model.base;

import java.io.Serializable;
import java.util.Date;

import com.xt.base.model.system.User;

/**
 * 操作信息类 <br>
 * <br>
 * 
 * <p>
 * <a href="OperateInfo.java.html"><i>查看源文件</i></a>
 * </p>
 * 
 * @author 杨洪波
 * @version $Revision: $<br>
 *          $Id: $
 *
 */
public class OperateInfo implements Serializable{

	private static final long serialVersionUID = -5751094577324977338L;

	/** 新建操作机构 */
	private Organization createOrganization;
	
	/** 新建操作员 */
	private User creator;
	
	/** 新建时间 */
	private Date createDate;
	
	/** 编辑操作机构 */
	private Organization editOrganization;
	
	/** 编辑操作员 */
	private User editor;
	
	/** 编辑时间 */
	private Date editDate;
	
	public OperateInfo(){}
	
	public OperateInfo(Organization createOrganization,User creator,Date createDate){
		this.createDate = createDate;
		this.creator = creator;
		this.createOrganization = createOrganization;
	}
	/**
	 * @hibernate.many-to-one column = "CreateOrganization_ID" inverse="true" lazy="true"
	 * @return 新建操作机构
	 */
	public Organization getCreateOrganization() {
		return createOrganization;
	}

	public void setCreateOrganization(Organization createOrganization) {
		this.createOrganization = createOrganization;
	}
	/**
	 * @hibernate.many-to-one column = "Creator_ID" inverse="true" lazy="true"
	 * @return 新建操作员
	 */
	public User getCreator() {
		return creator;
	}

	public void setCreator(User creator) {
		this.creator = creator;
	}
	/**
	 * @hibernate.property column="CreateDate" not-null="false" unique="false"
	 * @return 新建操作时间
	 */
	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	/**
	 * @hibernate.many-to-one column="EditOrganization_ID" inverse="true" lazy="true"
	 * @return 编辑操作机构
	 */
	public Organization getEditOrganization() {
		return editOrganization;
	}

	public void setEditOrganization(Organization editOrganization) {
		this.editOrganization = editOrganization;
	}
	/**
	 * @hibernate.many-to-one column="Editor_ID" inverse="true" lazy="true"
	 * @return 编辑操作员
	 */
	public User getEditor() {
		return editor;
	}

	public void setEditor(User editor) {
		this.editor = editor;
	}

	/**
	 * @hibernate.property column="EditDate" not-null="false" unique="false"
	 * @return 编辑操作时间
	 */
	public Date getEditDate() {
		return editDate;
	}

	public void setEditDate(Date editDate) {
		this.editDate = editDate;
	}
}
